package com.yycx.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.yycx.common.mybatis.base.entity.AbstractAllEntity;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yycx.common.mybatis.annotation.TableAlias;

import java.math.BigDecimal;

/**
 * 业务员
 *
 * @author flyme
 * @date 2020-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_saleman")
@TableAlias("saleman")
@ApiModel(value = "BusSaleman对象", description = "业务员")
public class BusSaleman extends AbstractAllEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "saleManId", type = IdType.ASSIGN_ID)
    private Long saleManId;

    /**
     * 订单申请流程实例ID
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String processInstanceId;


    @ApiModelProperty(value = "海鹰ID")
    private String saleManHyId;


    @ApiModelProperty(value = "招募人")
    private Long parentId;
    /**
     * 招募人姓名
     */
    private String parentName;

    @ApiModelProperty(value = "职务")
    private Long positionId;

    @ApiModelProperty(value = "职务序号")
    private String positionOrder;

    @ApiModelProperty(value = "职务编码")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String positionCode;

    @ApiModelProperty(value = "负责人编码")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String headCode;

    @ApiModelProperty(value = "业务员姓名")
    private String saleManName;

    @ApiModelProperty(value = "业务编码")
    private String saleManBusinessNo;

    @ApiModelProperty(value = "编码")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String saleManCode;

    @ApiModelProperty(value = "身份证号")
    private String cardNo;

    @ApiModelProperty(value = "机构ID")
    private Long organizationId;

    @ApiModelProperty(value = "企业ID")
    private Long companyId;

    @ApiModelProperty(value = "类型")
    private Integer saleManType;

    @ApiModelProperty(value = "享受省级结算")
    private Integer proLevel;

    @ApiModelProperty(value = "部门ID")
    private Long deptId;

    @ApiModelProperty(value = "联系电话")
    private String linkTel;

    @ApiModelProperty(value = "部门类型")
    private String deptType;

    @ApiModelProperty(value = "状态")
    private Integer salemanState;

    @ApiModelProperty(value = "资信天数")
    private Integer reputation;

    @ApiModelProperty(value = "多区域选择")
    private Integer multipleArea;

    @ApiModelProperty(value = "全额资信额度")
    private BigDecimal reputationAmount;


    @ApiModelProperty(value = "区ID")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long areaId;

    @ApiModelProperty(value = "城市ID")
    private Long cityId;

    @ApiModelProperty(value = "省ID")
    private Long proId;

    @ApiModelProperty("省市区名称")
    private String areaName;

    /**
     * 排序号
     */
    private String orderNum;

    @ApiModelProperty("区域简称")
    private String areaShortName;

    @ApiModelProperty("备注")
    private String remark;

}
